package com.tarena.lbs.activity.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tarena.lbs.activity.pojo.param.ActivityAddParam;
import com.tarena.lbs.activity.pojo.po.ActivityPO;
import com.tarena.lbs.activity.pojo.query.ActivityQuery;
import com.tarena.lbs.activity.pojo.vo.ActivityVO;
import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.pager.PageResult;

import java.text.ParseException;
import java.util.List;

public interface ActivityService {

    void saveActivity(ActivityAddParam param) throws BusinessException, ParseException;

    Boolean isTargetConsumer(Integer userId, Integer activityId) throws BusinessException;

    PageResult<ActivityVO> pageList() throws BusinessException;

    ActivityVO detail(Integer id) throws BusinessException;


    List<ActivityPO> getActivityByShopId(Integer shopId);
}